package com.example.SocialApplication.db.entity;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "color_table")
public class ColorEntity implements Serializable {

    @DatabaseField(columnName = "id", generatedId = true, canBeNull = false, dataType = DataType.INTEGER)
    private int id;
    @DatabaseField(columnName = "background", canBeNull = false, dataType = DataType.STRING)
    private String background;
    @DatabaseField(columnName = "icon_color", canBeNull = false, dataType = DataType.STRING)
    private String iconColor;

    public ColorEntity() {
    }

    public ColorEntity(String background, String iconColor) {
        this.background = background;
        this.iconColor = iconColor;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBackground() {
        return background;
    }

    public void setBackground(String background) {
        this.background = background;
    }

    public String getIconColor() {
        return iconColor;
    }

    public void setIconColor(String iconColor) {
        this.iconColor = iconColor;
    }
}
